package com.lh.createData.service.Impl;

import com.lh.createData.dao.SystemUserMapper;
import com.lh.createData.model.InPutParam.SystemUserInParam;
import com.lh.createData.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：梁昊，后端工程师：梁昊
 * @create 2021-07-23 16:59
 * @function
 * @editLog
 */
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Service
public class SystemUserServiceImpl implements SystemUserService {
    @Autowired
    SystemUserMapper systemUserMapper;

    /**
     * 定时任务：增加用户数统计
     *
     * @param systemUserInParam com.lh.createData.model.InPutParam.SystemUserInParam
     * @return 影响条数
     */
    @Override
    public int insertSystemUser (SystemUserInParam systemUserInParam) {
        systemUserMapper.deleteSystemUserByProjectIdOrCreateDate(systemUserInParam);
        return systemUserMapper.insertSystemUser(systemUserInParam);
    }
}